<template>
  <div>
    <BaseChart v-if="activeName == 1" >
      <div  @click="handleCheckMap(2)">切换地图</div>
    </BaseChart>
    <Chart3d v-else>
      <div  @click="handleCheckMap(1)">切换地图</div>
    </Chart3d>
  </div>
</template>

<script setup lang="ts">
import BaseChart from "./BaseChart.vue";
import Chart3d from "./Chart3d.vue";

const activeName = ref(1);
const handleCheckMap = (type) => {
  activeName.value = type;
};
</script>

<style scoped lang="scss">
.w-map {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}
</style>
